package cn.yunhe.entity;

import java.io.Serializable;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Created by 47496 on 2018/5/30.
 */
public class StudentProblem implements Serializable {
    private int pid;//试题id
    private String pname;//试题问题
    private Map<String,String> pchoice;//试题选项
    private String correctAnswer;//正确答案
    private String[] studentAnswer;//学生答案
    private LinkedHashMap<String,String> images;//图片集合
    private String resolve;//试题解析
    private String type;//试题类型
    private Integer grade;//试题难度等级

    public StudentProblem() {
    }

    public StudentProblem(int pid, String pname, Map<String, String> pchoice, String correctAnswer, String[] studentAnswer, LinkedHashMap<String, String> images, String resolve, String type, Integer grade) {
        this.pid = pid;
        this.pname = pname;
        this.pchoice = pchoice;
        this.correctAnswer = correctAnswer;
        this.studentAnswer = studentAnswer;
        this.images = images;
        this.resolve = resolve;
        this.type = type;
        this.grade = grade;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Map<String, String> getPchoice() {
        return pchoice;
    }

    public void setPchoice(Map<String, String> pchoice) {
        this.pchoice = pchoice;
    }

    public String getCorrectAnswer() {
        return correctAnswer;
    }

    public void setCorrectAnswer(String correctAnswer) {
        this.correctAnswer = correctAnswer;
    }

    public String[] getStudentAnswer() {
        return studentAnswer;
    }

    public void setStudentAnswer(String[] studentAnswer) {
        this.studentAnswer = studentAnswer;
    }

    public String getResolve() {
        return resolve;
    }

    public void setResolve(String resolve) {
        this.resolve = resolve;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public LinkedHashMap<String, String> getImages() {
        return images;
    }

    public void setImages(LinkedHashMap<String, String> images) {
        this.images = images;
    }

    @Override
    public String toString() {
        return "StudentProblem{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", pchoice=" + pchoice +
                ", correctAnswer='" + correctAnswer + '\'' +
                ", studentAnswer=" + Arrays.toString(studentAnswer) +
                ", images=" + images +
                ", resolve='" + resolve + '\'' +
                ", type='" + type + '\'' +
                ", grade=" + grade +
                '}';
    }
}
